﻿using System;
using System.Collections.Generic;

namespace Pool.DataBase.DAL
{
    public interface IDAL
    {
        T GetById<T>(object id);

        IList<T> GetAll<T>() where T : class;

        IList<T> GetAll<T>(Int32 pageIndex, Int32 pageSize) where T : class;

        void Add(object item);

        void Update(object item);

        void Delete(object item);

        void BeginTransaction();

        void Commit();

        void Rollback();
    }
}
